﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DetailViewStudy._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DetailsView ID="DetailsView1"   runat="server" Height="50px" Width="125px" 
            OnItemCreated="DetailsView1_ItemCreated" AllowPaging="True" 
            AutoGenerateEditButton="True" AutoGenerateInsertButton="True" 
            AutoGenerateDeleteButton="True" onmodechanging="DetailsView1_ModeChanging" 
            onpageindexchanging="DetailsView1_PageIndexChanging">
            <Fields>
                <asp:BoundField DataField="UserName" HeaderText="姓名" />
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
            </Fields>
        </asp:DetailsView>
    </div>
    </form>
</body>
</html>
